﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Model.Models
{
    /// <summary>
    /// 用户表 - 微信用户
    /// </summary>
    [SugarTable("sys_WXUser")]
    public class WXUser : BaseDBModel
    {
        /// <summary>
        /// OpenId
        /// </summary>
        [StringLength(100)]
        public string? OpenId { get; set; } = "";

        /// <summary>
        /// unionid
        /// </summary>
        [StringLength(100)]
        public string? Unionid { get; set; } = "";

        /// <summary>
        /// 姓名
        /// </summary>
        [StringLength(20)]
        public string? NickName { get; set; } = "";

        /// <summary>
        /// 性别 0未知 1 男 2 女
        /// </summary>
        [StringLength(20)]
        public int Gender { get; set; } = 0;

        /// <summary>
        /// 用户头像
        /// </summary>
        [StringLength(200)]
        public string? AvatarUrl { get; set; } = "";

        /// <summary>
        /// 手机号
        /// </summary>
        [StringLength(200)]
        public string? PhoneNumber { get; set; } = "";

        /// <summary>
        /// 国家
        /// </summary>
        [StringLength(50)]
        public string? Country { get; set; } = "";

        /// <summary>
        /// 省份
        /// </summary>
        [StringLength(50)]
        public string? Province { get; set; } = "";

        /// <summary>
        /// 城市
        /// </summary>
        [StringLength(50)]
        public string? City { get; set; } = "";

        /// <summary>
        /// 用户等级  LibEnums.UserLevel
        /// </summary>
        public int? UserLever { get; set; } = 1;


        /// <summary>
        /// 1 启用 2 禁用 等其他
        /// </summary>
        [StringLength(2)]
        public int EnableState { get; set; } = 1;
    }
}
